package ldh.im.admin.exception;

public enum ErrorStatus {
    No_login(1000, "未登录"),
    ;

    private ErrorStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void throwException() {
        throw new ErrorStatusException(this, this.getMsg());
    }

    public void throwException(String msg) {
        throw new ErrorStatusException(this, msg);
    }
}
